#include "StdAfx.h"
#include "AutoLock.h"

CAutoLock::CAutoLock(CCritSec& SyncObj):m_SyncObj(SyncObj)
{
	m_SyncObj.Lock();
}

CAutoLock::~CAutoLock(void)
{
	m_SyncObj.UnLock();
}
